package com.xskip.test 
{
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	/**
	 * 测试绘制图形类
	 * @author JamesXie
	 * @date 2011-02-04
	 */
	public class TestDrawBox
	{
		private var _parentDOC:DisplayObjectContainer;
		public function TestDrawBox(sp:DisplayObjectContainer) 
		{
			_parentDOC = sp;
			init();
		}
		
		private function init() :void {
			var fSp:Sprite = new Sprite();
			fSp.graphics.beginFill(0x006600);
			fSp.graphics.drawRect(0, 0, 800, 600);
			fSp.graphics.endFill();
			
			fSp.x = 0;
			fSp.y = 0;
			
			_parentDOC.addChild(fSp);
		}
		
	}

}